Skip to content

Conversation

@saschanaz
Copy link
Collaborator

@saschanaz saschanaz commented Mar 28, 2021

Closes #675, closes #505

@saschanaz saschanaz requested a review from sandersn as a code owner March 28, 2021 01:14
@HolgerJeromin
Copy link
Contributor

CC @jakearchibald and @MattiasBuelens

name: "webworker",
flavor: Flavor.Worker,
global: "Worker",
global: ["Worker", "DedicatedWorker", "SharedWorker", "ServiceWorker"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have a new dedicatedworker flavor that only contains ["DedicatedWorker", "Worker"]? It would be nice if you're writing code for a dedicated worker to have the type checker disallow using service worker-only or shared worker-only APIs. But I can also understand that it may be difficult to teach users the difference between the "webworker" and "dedicatedworker" flavors.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me and it was my initial plan. In the ideal world we could ultimately deprecate webworker in that case. I wonder what the maintainers think.

@saschanaz
Copy link
Collaborator Author

Replaced by #1034

@saschanaz saschanaz closed this Jul 2, 2021
@saschanaz saschanaz deleted the microsoft-workers branch July 2, 2021 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to define a .js file as ServiceWorkerGlobalScope Create ServiceWorker lib

3 participants